import re
import os
from pprint import pprint
model='(.*?): (.*)'



def get_raw_form_data():
	with open('data.txt',encoding='utf-8') as f:
		s = f.read()

		s2=s.split('\n')
		content=[]

		for i in s2:
			res = re.findall(model,i)
			content.extend(res)
		content = dict(content)
		return content

def get_form_data():
	return {
 'BID_PLATFORM': '0',
 'DEAL_CITY': '0',
 'DEAL_CLASSIFY': '00',
 'DEAL_PLATFORM': '0',
 'DEAL_PROVINCE': '110000',
 'DEAL_STAGE': '0000',
 'DEAL_TIME': '03',
 'DEAL_TRADE': '0',
 'PAGENUMBER': '1',
 'SOURCE_TYPE': '1',
 'TIMEBEGIN': '2019-07-10',
 'TIMEBEGIN_SHOW': '2019-07-10',
 'TIMEEND': '2019-07-19',
 'TIMEEND_SHOW': '2019-07-19',
 'isShowAll': '1'
	}

if __name__ == '__main__':
	pprint(get_form_data())
	# s='你好'
	# s=s.encode('utf-8')
	# s=s.decode('cp936')
	# print(type(s))
	# print(s)




